LIBS = -lglut -lGLU -lm

all: glut_3d.o glut_2d.o utils.o

glut_3d.o: glut_3d.c
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -c

glut_2d.o: glut_2d.c
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -c

utils.o: utils.c
	$(CC) -o $@ $^ $(CFLAGS) $(LIBS) -c

clean:
	rm *.o
